// @ts-ignore
/* eslint-disable */
import { api } from "@/utils/api";

/** 新增安全-应急管理演练记录表数据 POST /safeEmergencyExercises/add */
export async function safeEmergencyExercisesAdd(
  body: BIZAPI.SafeEmergencyExercisesCreateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function safeEmergencyExercisesAdd(
  body: BIZAPI.SafeEmergencyExercisesCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function safeEmergencyExercisesAdd(
  body: BIZAPI.SafeEmergencyExercisesCreateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function safeEmergencyExercisesAdd(
  body: BIZAPI.SafeEmergencyExercisesCreateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/safeEmergencyExercises/add`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/safeEmergencyExercises/add`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 删除安全-应急管理演练记录表数据 POST /safeEmergencyExercises/delete */
export async function safeEmergencyExercisesDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function safeEmergencyExercisesDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function safeEmergencyExercisesDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function safeEmergencyExercisesDelete(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/safeEmergencyExercises/delete`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/safeEmergencyExercises/delete`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取安全-应急管理演练记录表数据 POST /safeEmergencyExercises/get */
export async function safeEmergencyExercisesGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultSafeEmergencyExercisesEntity>;

export async function safeEmergencyExercisesGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultSafeEmergencyExercisesEntity>>;

export async function safeEmergencyExercisesGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultSafeEmergencyExercisesEntity>;

export async function safeEmergencyExercisesGet(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultSafeEmergencyExercisesEntity>(
      `/app/safeEmergencyExercises/get`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultSafeEmergencyExercisesEntity>(
    `/app/safeEmergencyExercises/get`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 获取安全-应急管理演练记录表VO数据 POST /safeEmergencyExercises/getVo */
export async function safeEmergencyExercisesGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultSafeEmergencyExercisesResp>;

export async function safeEmergencyExercisesGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultSafeEmergencyExercisesResp>>;

export async function safeEmergencyExercisesGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultSafeEmergencyExercisesResp>;

export async function safeEmergencyExercisesGetVo(
  body: BIZAPI.ID,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultSafeEmergencyExercisesResp>(
      `/app/safeEmergencyExercises/getVo`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultSafeEmergencyExercisesResp>(
    `/app/safeEmergencyExercises/getVo`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 获取安全-应急管理演练记录表分页数据 POST /safeEmergencyExercises/page */
export async function safeEmergencyExercisesPage(
  body: BIZAPI.SafeEmergencyExercisesQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageSafeEmergencyExercisesEntity>;

export async function safeEmergencyExercisesPage(
  body: BIZAPI.SafeEmergencyExercisesQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageSafeEmergencyExercisesEntity>>;

export async function safeEmergencyExercisesPage(
  body: BIZAPI.SafeEmergencyExercisesQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageSafeEmergencyExercisesEntity>;

export async function safeEmergencyExercisesPage(
  body: BIZAPI.SafeEmergencyExercisesQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageSafeEmergencyExercisesEntity>(
      `/app/safeEmergencyExercises/page`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultIPageSafeEmergencyExercisesEntity>(
    `/app/safeEmergencyExercises/page`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 更新安全-应急管理演练记录表数据 POST /safeEmergencyExercises/update */
export async function safeEmergencyExercisesUpdate(
  body: BIZAPI.SafeEmergencyExercisesUpdateReq,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResult>;

export async function safeEmergencyExercisesUpdate(
  body: BIZAPI.SafeEmergencyExercisesUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResult>>;

export async function safeEmergencyExercisesUpdate(
  body: BIZAPI.SafeEmergencyExercisesUpdateReq,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResult>;

export async function safeEmergencyExercisesUpdate(
  body: BIZAPI.SafeEmergencyExercisesUpdateReq,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResult>(`/app/safeEmergencyExercises/update`, {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
      tupleResponse: true,
    });
  }

  return api<BIZAPI.IResult>(`/app/safeEmergencyExercises/update`, {
    method: "POST",
    headers: {
      "Content-Type": "application/json",
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取安全-应急管理演练记录表VO分页数据 POST /safeEmergencyExercises/voPage */
export async function safeEmergencyExercisesVoPage(
  body: BIZAPI.SafeEmergencyExercisesQuery,
  options?: ArgumentsType<typeof api>[1]
): Promise<BIZAPI.IResultIPageSafeEmergencyExercisesResp>;

export async function safeEmergencyExercisesVoPage(
  body: BIZAPI.SafeEmergencyExercisesQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: true }
): Promise<TupleResponse<BIZAPI.IResultIPageSafeEmergencyExercisesResp>>;

export async function safeEmergencyExercisesVoPage(
  body: BIZAPI.SafeEmergencyExercisesQuery,
  options?: ArgumentsType<typeof api>[1] & { tupleResponse: false }
): Promise<BIZAPI.IResultIPageSafeEmergencyExercisesResp>;

export async function safeEmergencyExercisesVoPage(
  body: BIZAPI.SafeEmergencyExercisesQuery,
  options?: ArgumentsType<typeof api>[1]
) {
  if (
    (
      options as ArgumentsType<typeof api>[1] & {
        tupleResponse: boolean;
      }
    )?.tupleResponse === true
  ) {
    return api<BIZAPI.IResultIPageSafeEmergencyExercisesResp>(
      `/app/safeEmergencyExercises/voPage`,
      {
        method: "POST",
        headers: {
          "Content-Type": "application/json",
        },
        data: body,
        ...(options || {}),
        tupleResponse: true,
      }
    );
  }

  return api<BIZAPI.IResultIPageSafeEmergencyExercisesResp>(
    `/app/safeEmergencyExercises/voPage`,
    {
      method: "POST",
      headers: {
        "Content-Type": "application/json",
      },
      data: body,
      ...(options || {}),
    }
  );
}
